/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_prod_offer_onetime_price_info.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PROD_OFFER_ONETIME_PRICE_INFO
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_prod_offer_onetime_price_info.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PROD_OFFER_ONETIME_PRICE_INFO::CTable_PROD_OFFER_ONETIME_PRICE_INFO( )
 :NPCRecordSet( )
{
  setTableName( "PROD_OFFER_ONETIME_PRICE_INFO" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  OFFER_ID.setField( "OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OFFER_ID );
  PRICING_PLAN_ID.setField( "PRICING_PLAN_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_PLAN_ID );
  PRICING_PLAN_NAME.setField( "PRICING_PLAN_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( PRICING_PLAN_NAME );
  EXP_DATE.setField( "EXP_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EXP_DATE );
  EFF_DATE.setField( "EFF_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EFF_DATE );
  PRICING_DESC.setField( "PRICING_DESC", DATA_CHAR, 500, 0 );
  makeTableItem( PRICING_DESC );
}


CTable_PROD_OFFER_ONETIME_PRICE_INFO::CTable_PROD_OFFER_ONETIME_PRICE_INFO( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PROD_OFFER_ONETIME_PRICE_INFO" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  OFFER_ID.setField( "OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OFFER_ID );
  PRICING_PLAN_ID.setField( "PRICING_PLAN_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_PLAN_ID );
  PRICING_PLAN_NAME.setField( "PRICING_PLAN_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( PRICING_PLAN_NAME );
  EXP_DATE.setField( "EXP_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EXP_DATE );
  EFF_DATE.setField( "EFF_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EFF_DATE );
  PRICING_DESC.setField( "PRICING_DESC", DATA_CHAR, 500, 0 );
  makeTableItem( PRICING_DESC );
}

CTable_PROD_OFFER_ONETIME_PRICE_INFO::~CTable_PROD_OFFER_ONETIME_PRICE_INFO( )
{
    close();
}

